{% extends "base.html" %}
{% load origin %}
{% load django_bootstrap5 %}
{% block title %}Release I-D {{ doc.name }}-{{ doc.rev }}{% endblock %}
{% block content %}
    <h1>
        Release Internet-Draft
        <br>
        <small class="text-body-secondary">{{ doc.name }}-{{ doc.rev }}</small>
    </h1>
    <div class="my-3 alert alert-warning">
        <b>Warning:</b>
        {% if doc.stream.slug == 'ise' %}
            This action will unset all Independent Stream state and remove the document from the Independent Stream.
        {% else %}
            This action will unset all {{ doc.group.acronym|upper }} group state, and remove the document from the {{ doc.stream.name }} stream.
            <br>
            This is appropriate, for example, if the group decided not to adopt a document after considering it.
            <br>
            It may also be appropriate if the group is abandoning the document.
        {% endif %}
    </div>
    <form method="post">
        {% csrf_token %}
        {% bootstrap_form form %}
        <button type="submit" class="btn btn-warning">Release</button>
        <a class="btn btn-secondary float-end"
           href="{% url "ietf.doc.views_doc.document_main" name=doc.name %}">Back</a>
    </form>
{% endblock %}